from django.urls import path, include
from rest_framework.routers import SimpleRouter
from .views import AdornPediaCategoryListView, AdornPediaDictView, \
    AdornPediaDetailView, AdornPediaImgsView

urlpatterns = [
    path('dict/', AdornPediaDictView.as_view()),  # 装修百科分类
    path('', AdornPediaCategoryListView.as_view()),  # 装修百科列表
    path('<int:pk>/detail/', AdornPediaDetailView.as_view()),  # 装修百科详情
    path('imgs/', AdornPediaImgsView.as_view()),  # 装修百科详情
]

# router = SimpleRouter()
# router.register('member', MemberViewSet)  # 后台会员,CRUD操作
# urlpatterns += router.urls
